<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
/**
 * 课程报名信息model
 */
class course_sign_model extends model {
	public function __construct() {
		$this->db_config = pc_base::load_config('database');
		$this->db_setting = 'default';
		$this->table_name = 'course_sign';
		parent::__construct();
	}
	
	/*
	 * 课程报名信息删除
	 */
	public function deleteCoursesign($course_id) {
		$result = $this->update(array(
				'status' => '2'
		), "course_id in ('$course_id')");//删除课程报名信息
		return $result;
	}
}